package com.retirement.information.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 基础信息实体类
 * </p>
 *
 * @author lijy
 * @since 2023-12-20
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("old_information")
@ApiModel(value = "OldInformation对象", description = "")
public class OldInformation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("信息id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("性别")
    private String gender;

    @ApiModelProperty("身份证号")
    private String identity;

    @ApiModelProperty("出生年月")
    @DateTimeFormat(pattern = "yyyy-MM-dd", iso = DateTimeFormat.ISO.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate age;

    @ApiModelProperty("婚姻状况")
    private String maritalStatus;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("文化程度")
    private String degree;

    @ApiModelProperty("健康状况")
    private String health;

    @ApiModelProperty("生活状况")
    private String living;

    @ApiModelProperty("生活能力")
    private String viability;

    @ApiModelProperty("是否需要照顾：0否、1是")
    private String care;

    @ApiModelProperty("是否有子女：0否、1是")
    private String children;

    @ApiModelProperty("已有社会福利")
    private String socialWelfare;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty("删除：0否 1是")
    private Integer deleted;

}
